package de.ifi.lmu.snitzelhunt.basics;

/**
 * Class for saving a ActionTask inherits Task
 * 
 * @author jaschkowitz
 * 
 */
public class ActionTask extends Task {

	// the Action the participant has to do
	private String action;

	/**
	 * simple constructor for setting all fields
	 * 
	 * @param latitude
	 * @param longitude
	 * @param action
	 */
	public ActionTask(double latitude, double longitude, String action) {
		super(latitude, longitude);
		this.setAction(action);
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	@Override
	public String getDetail() {
		return action;
	}

	@Override
	public String toString() {
		return getClass().getName() + " [action=" + action + ",latitude="
				+ latitude + "longituide, " + longitude + "]";
	}
}
